package com.huawang.mdesign.model.service.request;


import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import com.huawang.mdesign.model.service.dto.DeletePartitionDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

@Data
public class DeleteAllocateActivityPartitionDTO extends ProjectIdDTO {

    @Schema(title = "项目id")
    private String projectId;

    @Schema(title = "删除水平泳道")
    private List<DeletePartitionDTO> deleteHorizontalPartitions = new ArrayList<>();

    @Schema(title = "删除垂直泳道")
    private List<DeletePartitionDTO> deleteVerticalPartitions = new ArrayList<>();

    @Schema(title = "泳道的分配模式")
    @NotBlank(message = ParamErrorConstants.NO_ALLOCATION_MODE)
    private String allocationMode;

}
